﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace YakShaver
{
	partial class WorkItemEntryWorkflow
	{
		#region Designer generated code
		
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding7 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding8 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference2 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference3 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.Rules.RuleSetReference rulesetreference1 = new System.Workflow.Activities.Rules.RuleSetReference();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference4 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding9 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding10 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            this.callNotifyProviderForIntervention = new System.Workflow.Activities.CallExternalMethodActivity();
            this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
            this.delayWaitForWorkItemModification = new System.Workflow.Activities.DelayActivity();
            this.UpdateWorkItemIntervened = new System.Workflow.Activities.CodeActivity();
            this.handleWorkItemModified = new System.Workflow.Activities.HandleExternalEventActivity();
            this.eventWaitForWorkItemModification = new System.Workflow.Activities.EventDrivenActivity();
            this.eventWorkItemModified = new System.Workflow.Activities.EventDrivenActivity();
            this.listenForInterventionEvent = new System.Workflow.Activities.ListenActivity();
            this.callProviderNotifyForIntervention = new System.Workflow.Activities.CallExternalMethodActivity();
            this.NotifyAndHandleSequence = new System.Workflow.Activities.SequenceActivity();
            this.callProviderCreateWorkItem = new System.Workflow.Activities.CallExternalMethodActivity();
            this.callExternalMethodActivity1 = new System.Workflow.Activities.CallExternalMethodActivity();
            this.whileNotWorkItemInterventionHandled = new System.Workflow.Activities.WhileActivity();
            this.ifInterventionNotNeeded = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifNeedsIntervention = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifWorkItemNeedsIntervention = new System.Workflow.Activities.IfElseActivity();
            this.policyCheckForInterventionConditions = new System.Workflow.Activities.PolicyActivity();
            this.sequenceActivity4 = new System.Workflow.Activities.SequenceActivity();
            this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
            this.whileWorkItemNeedsIntervention = new System.Workflow.Activities.WhileActivity();
            this.callProviderAnalyze = new System.Workflow.Activities.CallExternalMethodActivity();
            // 
            // callNotifyProviderForIntervention
            // 
            this.callNotifyProviderForIntervention.InterfaceType = typeof(YakShaver.Contract.INotificationService);
            this.callNotifyProviderForIntervention.MethodName = "NotifyForIntervention";
            this.callNotifyProviderForIntervention.Name = "callNotifyProviderForIntervention";
            activitybind1.Name = "WorkItemEntryWorkflow";
            activitybind1.Path = "NotifyCount";
            workflowparameterbinding1.ParameterName = "nofityCount";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            activitybind2.Name = "WorkItemEntryWorkflow";
            activitybind2.Path = "WorkItemDataContract";
            workflowparameterbinding2.ParameterName = "workItemDataContract";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.callNotifyProviderForIntervention.ParameterBindings.Add(workflowparameterbinding1);
            this.callNotifyProviderForIntervention.ParameterBindings.Add(workflowparameterbinding2);
            this.callNotifyProviderForIntervention.MethodInvoking += new System.EventHandler(this.callNotifyProviderForIntervention_MethodInvoking);
            // 
            // sequenceActivity1
            // 
            this.sequenceActivity1.Activities.Add(this.callNotifyProviderForIntervention);
            this.sequenceActivity1.Name = "sequenceActivity1";
            // 
            // delayWaitForWorkItemModification
            // 
            this.delayWaitForWorkItemModification.Name = "delayWaitForWorkItemModification";
            activitybind3.Name = "WorkItemEntryWorkflow";
            activitybind3.Path = "NotificationCycleDelay";
            this.delayWaitForWorkItemModification.SetBinding(System.Workflow.Activities.DelayActivity.TimeoutDurationProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // UpdateWorkItemIntervened
            // 
            this.UpdateWorkItemIntervened.Name = "UpdateWorkItemIntervened";
            this.UpdateWorkItemIntervened.ExecuteCode += new System.EventHandler(this.UpdateWorkItemIntervened_ExecuteCode);
            // 
            // handleWorkItemModified
            // 
            this.handleWorkItemModified.EventName = "HandleWorkItemModifiedEvent";
            this.handleWorkItemModified.InterfaceType = typeof(YakShaver.Contract.INotificationService);
            this.handleWorkItemModified.Name = "handleWorkItemModified";
            activitybind4.Name = "WorkItemEntryWorkflow";
            activitybind4.Path = "WorkItemModifiedEventArgs";
            workflowparameterbinding3.ParameterName = "e";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.handleWorkItemModified.ParameterBindings.Add(workflowparameterbinding3);
            // 
            // eventWaitForWorkItemModification
            // 
            this.eventWaitForWorkItemModification.Activities.Add(this.delayWaitForWorkItemModification);
            this.eventWaitForWorkItemModification.Activities.Add(this.sequenceActivity1);
            this.eventWaitForWorkItemModification.Name = "eventWaitForWorkItemModification";
            // 
            // eventWorkItemModified
            // 
            this.eventWorkItemModified.Activities.Add(this.handleWorkItemModified);
            this.eventWorkItemModified.Activities.Add(this.UpdateWorkItemIntervened);
            this.eventWorkItemModified.Description = "Handles event from service provider that someone has acted on the event.  Analyze" +
                " it and see if conditions have been met.";
            this.eventWorkItemModified.Name = "eventWorkItemModified";
            // 
            // listenForInterventionEvent
            // 
            this.listenForInterventionEvent.Activities.Add(this.eventWorkItemModified);
            this.listenForInterventionEvent.Activities.Add(this.eventWaitForWorkItemModification);
            this.listenForInterventionEvent.Name = "listenForInterventionEvent";
            // 
            // callProviderNotifyForIntervention
            // 
            this.callProviderNotifyForIntervention.Description = "Send this to help desk or an intermediary source";
            this.callProviderNotifyForIntervention.InterfaceType = typeof(YakShaver.Contract.INotificationService);
            this.callProviderNotifyForIntervention.MethodName = "NotifyForIntervention";
            this.callProviderNotifyForIntervention.Name = "callProviderNotifyForIntervention";
            activitybind5.Name = "WorkItemEntryWorkflow";
            activitybind5.Path = "NotifyCount";
            workflowparameterbinding4.ParameterName = "nofityCount";
            workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            activitybind6.Name = "WorkItemEntryWorkflow";
            activitybind6.Path = "WorkItemDataContract";
            workflowparameterbinding5.ParameterName = "workItemDataContract";
            workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.callProviderNotifyForIntervention.ParameterBindings.Add(workflowparameterbinding4);
            this.callProviderNotifyForIntervention.ParameterBindings.Add(workflowparameterbinding5);
            this.callProviderNotifyForIntervention.MethodInvoking += new System.EventHandler(this.callNotifyProviderForIntervention_MethodInvoking);
            // 
            // NotifyAndHandleSequence
            // 
            this.NotifyAndHandleSequence.Activities.Add(this.callProviderNotifyForIntervention);
            this.NotifyAndHandleSequence.Activities.Add(this.listenForInterventionEvent);
            this.NotifyAndHandleSequence.Name = "NotifyAndHandleSequence";
            // 
            // callProviderCreateWorkItem
            // 
            this.callProviderCreateWorkItem.InterfaceType = typeof(YakShaver.IWorkItemProviderService);
            this.callProviderCreateWorkItem.MethodName = "CreateWorkItem";
            this.callProviderCreateWorkItem.Name = "callProviderCreateWorkItem";
            activitybind7.Name = "WorkItemEntryWorkflow";
            activitybind7.Path = "WorkItem";
            workflowparameterbinding6.ParameterName = "workItem";
            workflowparameterbinding6.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            this.callProviderCreateWorkItem.ParameterBindings.Add(workflowparameterbinding6);
            // 
            // callExternalMethodActivity1
            // 
            this.callExternalMethodActivity1.InterfaceType = typeof(YakShaver.Contract.IAnalysisService);
            this.callExternalMethodActivity1.MethodName = "AnalyzeSubmittedWorkItem";
            this.callExternalMethodActivity1.Name = "callExternalMethodActivity1";
            activitybind8.Name = "WorkItemEntryWorkflow";
            activitybind8.Path = "WorkItem";
            workflowparameterbinding7.ParameterName = "(ReturnValue)";
            workflowparameterbinding7.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            activitybind9.Name = "WorkItemEntryWorkflow";
            activitybind9.Path = "WorkItemDataContract";
            workflowparameterbinding8.ParameterName = "workItemData";
            workflowparameterbinding8.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.callExternalMethodActivity1.ParameterBindings.Add(workflowparameterbinding7);
            this.callExternalMethodActivity1.ParameterBindings.Add(workflowparameterbinding8);
            // 
            // whileNotWorkItemInterventionHandled
            // 
            this.whileNotWorkItemInterventionHandled.Activities.Add(this.NotifyAndHandleSequence);
            ruleconditionreference1.ConditionName = "CheckForWorkItemIntervened";
            this.whileNotWorkItemInterventionHandled.Condition = ruleconditionreference1;
            this.whileNotWorkItemInterventionHandled.Name = "whileNotWorkItemInterventionHandled";
            // 
            // ifInterventionNotNeeded
            // 
            this.ifInterventionNotNeeded.Activities.Add(this.callProviderCreateWorkItem);
            ruleconditionreference2.ConditionName = "CheckForReady";
            this.ifInterventionNotNeeded.Condition = ruleconditionreference2;
            this.ifInterventionNotNeeded.Name = "ifInterventionNotNeeded";
            // 
            // ifNeedsIntervention
            // 
            this.ifNeedsIntervention.Activities.Add(this.whileNotWorkItemInterventionHandled);
            this.ifNeedsIntervention.Activities.Add(this.callExternalMethodActivity1);
            ruleconditionreference3.ConditionName = "CheckForNotReady";
            this.ifNeedsIntervention.Condition = ruleconditionreference3;
            this.ifNeedsIntervention.Name = "ifNeedsIntervention";
            // 
            // ifWorkItemNeedsIntervention
            // 
            this.ifWorkItemNeedsIntervention.Activities.Add(this.ifNeedsIntervention);
            this.ifWorkItemNeedsIntervention.Activities.Add(this.ifInterventionNotNeeded);
            this.ifWorkItemNeedsIntervention.Name = "ifWorkItemNeedsIntervention";
            // 
            // policyCheckForInterventionConditions
            // 
            this.policyCheckForInterventionConditions.Name = "policyCheckForInterventionConditions";
            rulesetreference1.RuleSetName = "WorkItemValidationPolicy";
            this.policyCheckForInterventionConditions.RuleSetReference = rulesetreference1;
            // 
            // sequenceActivity4
            // 
            this.sequenceActivity4.Activities.Add(this.policyCheckForInterventionConditions);
            this.sequenceActivity4.Activities.Add(this.ifWorkItemNeedsIntervention);
            this.sequenceActivity4.Name = "sequenceActivity4";
            // 
            // codeActivity1
            // 
            this.codeActivity1.Name = "codeActivity1";
            this.codeActivity1.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
            // 
            // whileWorkItemNeedsIntervention
            // 
            this.whileWorkItemNeedsIntervention.Activities.Add(this.sequenceActivity4);
            ruleconditionreference4.ConditionName = "CheckForWorkItemSubmissionStatus";
            this.whileWorkItemNeedsIntervention.Condition = ruleconditionreference4;
            this.whileWorkItemNeedsIntervention.Name = "whileWorkItemNeedsIntervention";
            // 
            // callProviderAnalyze
            // 
            this.callProviderAnalyze.InterfaceType = typeof(YakShaver.Contract.IAnalysisService);
            this.callProviderAnalyze.MethodName = "AnalyzeSubmittedWorkItem";
            this.callProviderAnalyze.Name = "callProviderAnalyze";
            activitybind10.Name = "WorkItemEntryWorkflow";
            activitybind10.Path = "WorkItem";
            workflowparameterbinding9.ParameterName = "(ReturnValue)";
            workflowparameterbinding9.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            activitybind11.Name = "WorkItemEntryWorkflow";
            activitybind11.Path = "WorkItemDataContract";
            workflowparameterbinding10.ParameterName = "workItemData";
            workflowparameterbinding10.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            this.callProviderAnalyze.ParameterBindings.Add(workflowparameterbinding9);
            this.callProviderAnalyze.ParameterBindings.Add(workflowparameterbinding10);
            // 
            // WorkItemEntryWorkflow
            // 
            this.Activities.Add(this.callProviderAnalyze);
            this.Activities.Add(this.whileWorkItemNeedsIntervention);
            this.Activities.Add(this.codeActivity1);
            this.Name = "WorkItemEntryWorkflow";
            this.CanModifyActivities = false;

		}

		#endregion

        private CodeActivity codeActivity1;
        private CodeActivity UpdateWorkItemIntervened;
        private CallExternalMethodActivity callExternalMethodActivity1;
        private SequenceActivity sequenceActivity1;
        private PolicyActivity policyCheckForInterventionConditions;
        private SequenceActivity sequenceActivity4;
        private WhileActivity whileWorkItemNeedsIntervention;
        private CallExternalMethodActivity callProviderCreateWorkItem;
        private EventDrivenActivity eventWaitForWorkItemModification;
        private EventDrivenActivity eventWorkItemModified;
        private ListenActivity listenForInterventionEvent;
        private DelayActivity delayWaitForWorkItemModification;
        private CallExternalMethodActivity callNotifyProviderForIntervention;
        private SequenceActivity NotifyAndHandleSequence;
        private WhileActivity whileNotWorkItemInterventionHandled;
        private CallExternalMethodActivity callProviderNotifyForIntervention;
        private HandleExternalEventActivity handleWorkItemModified;
        private IfElseBranchActivity ifInterventionNotNeeded;
        private IfElseBranchActivity ifNeedsIntervention;
        private IfElseActivity ifWorkItemNeedsIntervention;
        private CallExternalMethodActivity callProviderAnalyze;

































































































































    }
}
